using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using TienTeTuong;
using log4net;
namespace TienTeTuong
{
    public class ArticlecategoryBUS
    {
        
        public List<ArticlecategoryDTO> GetListArticlecategory()
        {
            var dao = new ArticlecategoryDAO();
            return dao.GetListArticlecategory();
        }

        public ArticlecategoryDTO GetArtCateByID(string ArtCateID)
        {
            var dao = new ArticlecategoryDAO();
            return dao.GetArtCateByID(ArtCateID);
        }
        public List<ArticlecategoryDTO> searchCategoryDetailByName(string key)
        {
            var dao = new ArticlecategoryDAO();
            return dao.searchCategoryByName(key);
        }
        public bool delete(string key)
        {
            var dao = new ArticlecategoryDAO();
            return dao.delete(key);
        }
        public bool update(ArticlecategoryDTO item)
        {
            var dao = new ArticlecategoryDAO();
            return dao.update(item);
        }

        public bool add(ArticlecategoryDTO item)
        {
            var dao = new ArticlecategoryDAO();
            return dao.add(item);
        }
    }
}
